package individual.ircon.bilibili.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * 这个Bean主要是为了获取真实的房间号——Data里面的room_id。链接里面的房间号不一定是。
 */
public class RoomInit implements Serializable {

    @JSONField(name = "code")
    public Integer code;
    @JSONField(name = "msg")
    public String msg;
    @JSONField(name = "message")
    public String message;
    @JSONField(name = "data")
    public Data data;

    public static class Data implements Serializable {

        @JSONField(name = "room_id")
        public Long roomId;
        @JSONField(name = "short_id")
        public Integer shortId;
        @JSONField(name = "uid")
        public Long uid;
        @JSONField(name = "need_p2p")
        public Integer needP2p;
        @JSONField(name = "is_hidden")
        public Boolean isHidden;
        @JSONField(name = "is_locked")
        public Boolean isLocked;
        @JSONField(name = "is_portrait")
        public Boolean isPortrait;
        @JSONField(name = "live_status")
        public Integer liveStatus;
        @JSONField(name = "hidden_till")
        public Integer hiddenTill;
        @JSONField(name = "lock_till")
        public Integer lockTill;
        @JSONField(name = "encrypted")
        public Boolean encrypted;
        @JSONField(name = "pwd_verified")
        public Boolean pwdVerified;
        @JSONField(name = "live_time")
        public Long liveTime;
        @JSONField(name = "room_shield")
        public Integer roomShield;
        @JSONField(name = "is_sp")
        public Integer isSp;
        @JSONField(name = "special_type")
        public Integer specialType;
    }
}
